getCategoryFromTxn

Returns the account of the other side of the given transaction, but only if the other side doesn't contain multiple splits.

Return

null if the other side of the transaction contains multiple splits, and the other side's Account otherwise